﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace KFC.ThanhVienF
{
    public class ThanhVien: KhachHang
    {
        ServiceReferenceKFC.Service1SoapClient client = 
            new ServiceReferenceKFC.Service1SoapClient();
        
        private int maThe;
        
        public int MaThe
        {
            get { return maThe; }
            set { maThe = value; }
        }
        private int giamGia;

        public int GiamGia
        {
            get { return giamGia; }
            set { giamGia = value; }
        }

        public ThanhVien(int maTHe)
        {
            this.maThe = maTHe;
        }

        public ThanhVien()
        {
        }
      
        public override int TinhTien(int tienHoaDon)
        {
            return client.TinhTienChoThanhVien(maThe, tienHoaDon);
        }
    }
}
